package com.ss.android.newmedia.a;

import android.app.Activity;
import android.content.DialogInterface;

final class k implements DialogListener {
    private final BrowserFragment b;
    private final Activity a;

    k(BrowserFragment arg1, Activity arg2) {
        this.b = arg1;
        this.a = arg2;
    }

    public final void onCancel(DialogInterface arg1) {
    }

    public final void onDismiss(DialogInterface arg2) {
        if ((this.b.D) && !this.b.E && !this.a.isFinishing()) {
            this.a.finish();
        }
    }

    public final void onShow(DialogInterface arg1) {
    }
}

